var token = storage['token']
axios({
    method:'post',
    url:'indexData',
    headers:{
        'Authorization':token
    }
})
    .then(res => {
        if (res.data.code == 200) {
            console.log("成功了")
        } else {

            console.log("未登录")
            location.href = 'login'
        }
    })